package com.chenqing.baike.service;


import java.io.IOException;
import java.io.OutputStream;
import java.net.Socket;

public class Spider {
 public static void socket(String title){
     Socket socket;
     String Code_Adress = "localhost";
     try {
         socket = new Socket(Code_Adress,9007);
         OutputStream outputStream = socket.getOutputStream();
         outputStream.write(title.getBytes());
         socket.close();
     } catch (IOException e) {
         e.printStackTrace();
     }
 }
}
